package Controller;


import java.net.URL;
import java.util.ResourceBundle;


import Main.Diagram_Main;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.stage.Stage;

public class Begin_Controller implements Initializable {

    @FXML
    private Button btlog;

    @FXML
    private Button btdel;

    @Override
    public void initialize(URL location, ResourceBundle resources) {

    }

    public void Begin(ActionEvent event) throws Exception {
        Stage stage = (Stage) btlog.getScene().getWindow();
        stage.close();
        Diagram_Main adm = new Diagram_Main();
        Stage s = new Stage();
        adm.start(s);
    }

    public void Delect(ActionEvent event) throws Exception {


        Stage stage = (Stage) btdel.getScene().getWindow();
        stage.close();


    }

}
